package io.renren.common.utils;

import cn.hutool.core.util.NumberUtil;
import io.renren.modules.dangan.utils.DanganConstant;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class ConstantInit {

    @Value("${upload.jnmlPath}")
    private String jnmlUploadPath;

    @Value("${upload.jnmlServerXh}")
    private String jnmlServerXh;

    @PostConstruct
    public void init(){
        DanganConstant.uploadJnmlPath=jnmlUploadPath;
        DanganConstant.jnmlServerXh= Integer.parseInt(jnmlServerXh);
    }
}
